package com.qf.commons.redis.lock;

import org.redisson.api.RLock;

public class LockThreadLocal {

    private static ThreadLocal<RLock> rLockThreadLocal = new ThreadLocal<>();

    public static void putRLock(RLock rLock){
        rLockThreadLocal.set(rLock);
    }

    public static RLock getRLock(){
        return rLockThreadLocal.get();
    }

    public static void clear(){
        rLockThreadLocal.remove();
    }
}